import request from "@/utils/request";
var baseUrl = '/user/myDesign/'

export function getAllCollectionSharing(page,size) {
  return request({
    url: baseUrl+'findAllLiveSharing',
    method: 'post',
    params: {page,size}
  })
}

export function openOrClosePower(liveId) {
  return request({
    url: baseUrl+'open/close/powerLive',
    method: 'post',
    params: {liveId}
  })
}

export function deleteShare(liveId) {
  return request({
    url: baseUrl+'delete/live',
    method: 'post',
    params: {liveId}
  })
}

export function getAllMyRead(page,size,find) {
  return request({
    url: baseUrl+'query/myRead',
    method: 'post',
    params: {page,size,find}
  })
}

export function changePowerMyRead(readId) {
  return request({
    url: baseUrl+'changePower/myRead',
    method: 'post',
    params: {readId}
  })
}

export function delMyRead(readId) {
  return request({
    url: baseUrl+'delete/myRead',
    method: 'post',
    params: {readId}
  })
}

export function addMyRead(addReadDTO) {
  return request({
    url: baseUrl+'add/myRead',
    method: 'post',
    data: addReadDTO
  })
}
